package com.book.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


//订单明细
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bs_order_item")
public class OrderItem extends Model<OrderItem>{

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer orderId;
    private Integer bookId;
    private Integer count;  //商品数量

    @TableField(exist = false)
    private Book book;  //图书对象
}
